package com.bknc.sgolf.pgm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.ibatis.SqlMapClientTemplate;
import org.springframework.stereotype.Repository;

import com.bknc.sgolf.pgm.service.SgolfShopVO;
import com.bknc.sgolf.pgm.service.SgolfTestVO2;

@Repository("sgolfshopDAO")
public class SgolfShopDAO {
	@Autowired
	private SqlMapClientTemplate sqlMapClientTemplate;
	
	@SuppressWarnings("unchecked")
	public List<SgolfShopVO> selectSgolfShopList(SgolfShopVO sgolfshopvo) throws Exception {
		List<SgolfShopVO> list = sqlMapClientTemplate.queryForList("sgolfshopDAO.selectSgolfShopList", sgolfshopvo); 
		return list;
	}

	@SuppressWarnings("unchecked")
	public List<SgolfTestVO2> selectSgolfTestList2(SgolfTestVO2 sgolftestvo) throws Exception {
		List<SgolfTestVO2> list = sqlMapClientTemplate.queryForList("sgolfshopDAO.selectSgolfTestList2",sgolftestvo); 
		return list;
	}

	@SuppressWarnings("unchecked")
	public void insertSgolfShop(SgolfShopVO sgolfshopvo) throws Exception {
		sqlMapClientTemplate.insert("sgolfshopDAO.insertGolfShop", sgolfshopvo);
	}
}